<?php

namespace App\Http\Requests\Api;

class WriteOffRecordRequest extends FormRequest
{
    public function rules()
    {
        $arr = [
            'at' => 'required|date_format:"Y-m-d H:i:s"',
            'search'   => 'string',
            'org_id' => 'required|integer'
        ];
        return $arr;
    }

    public function attributes()
    {
        return [
            'at' => '最近核销时间',
            'search'   => '关键字',
            'org_id'   => '组织ID',
        ];
    }
}
